import request from '/@/api/request'
/** 获取大咖列表 */
export const requestBigShotList = (data: InformationTypes.IRequest) => {
  return request.post<IPaginationResponse<InformationTypes.IResponse[]>>('/business/datamarket/bigShot/bigShotPage', data)
}

/** 获取字典 */
export const requestGetAllDicts = (data: { type: string }) => {
  return request.get<IBaseResponse<InformationTypes.IDictResponse>>('/business/datamarket/common/allDicts', data)
}

/** 更新大咖 */
export const requestSaveBigShot = (data: InformationTypes.IAddInformation) => {
  return request.post<IBaseResponse<InformationTypes.IDictResponse>>('/business/datamarket/bigShot/saveBigShot', data)
}

/** 删除大咖 */
export const requestDeleteBigShotById = (bigShotId: number) => {
  return request.get<IBaseResponse<string>>('/business/datamarket/bigShot/deleteBigShotById', { bigShotId })
}
